How to find angle between two lines having its direction cosines